package com.woniuxy.background.service.impl;

import com.woniuxy.background.dao.CommontMapper;
import com.woniuxy.background.pojo.Commont;
import com.woniuxy.background.service.CommontService;
import com.woniuxy.background.vo.CmtVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommontServiceImpl implements CommontService {

    @Autowired
    private CommontMapper commontMapper;
    @Override
    public int deleteByPrimaryKey(Integer commontId) {
        return commontMapper .deleteByPrimaryKey(commontId);
    }

    @Override
    public int insert(Commont record) {
        return commontMapper.insert(record);
    }

    @Override
    public int insertSelective(Commont record) {
        return commontMapper.insertSelective(record);
    }

    @Override
    public Commont selectByPrimaryKey(Integer commontId) {
        return commontMapper.selectByPrimaryKey(commontId);
    }

    @Override
    public int updateByPrimaryKeySelective(Commont record) {
        return commontMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Commont record) {
        return commontMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Commont> queryCommontByPage(Integer currentPage, Integer pageSize, CmtVO cmtVo) {
        return commontMapper.queryCommontByPage(currentPage,pageSize,cmtVo);
    }

    @Override
    public void batchDeleteCmt(List<Integer> list) {
        commontMapper.batchDeleteCmt(list);
    }
}
